﻿using System;
using System.Linq;

namespace CsvParser
{
	class Program
	{
		static void Main(string[] args)
		{
			//var str = ",123, \"m , \",,\"Some \\\"more\\\" stuff\" ";
			var str = "The \"quoted\" text.,, ,   , \"yes\", no";
			Console.WriteLine("Input: " + str);
			Console.WriteLine("Splitted output:");
			var parts = CsvParserStateMachine.SplitLine(str).ToArray();
			for (int i = 0; i < parts.Length; i++)
			{
				Console.WriteLine("{0}: {1}", i + 1, parts[i]);
			}
			Console.ReadLine();

		}
	}
}
